#include<stdio.h>
#include<conio.h>
#include<math.h>
int main(){
	int a[100],n,i=1;
	printf("Nhap so phan tu cua mang: ");
	scanf("%d",&n);
	printf("Nhap mang theo thu tu tang dan\n");
	printf("Nhap a[0]= ");
	scanf("%d",&a[0]);	
	do{
		printf("Nhap a[%d]= ",i);
		scanf("%d",&a[i]);
		if(a[i-1]>a[i]){
			printf("Yeu cau nhap lai !\n");
			i=0;
		}
		i++;
	}
	while(i<n);
}
